/* vim: set expandtab tabstop=4 softtabstop=4 shiftwidth=4: */
/* Copyright (C) 2012 Zongyou Yao. All rights reserved.     */

#include "arith.h"
#include "unittest.h"

int main(int argc, char **argv)
{
    ASSERT_EQ(arith_max(1, 2), 2);
    ASSERT_TRUE(arith_max(1, 2) == 2);
    ASSERT_TRUE(arith_min(1, 2) == 1);
    ASSERT_TRUE(arith_div(1, 2) == 0);
    ASSERT_TRUE(arith_mod(1, 2) == 1);
    ASSERT_TRUE(arith_ceiling(1, 2) == 1);
    ASSERT_TRUE(arith_floor(1, 2) == 0);

    return 0;
}
